package org.zero.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zero.mapper.UserMapper;

/**
 * 业务层的类创建bean并存入容器，使用同 Component 注解
 *
 * @author Zero
 */
@Service("userService")
public class UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public String toString() {
        return "UserService{" +
                "userMapper=" + userMapper +
                '}';
    }
}
